<template>
    <el-tree-select
        v-bind="$attrs"
        :node-key="valueCol"
        :props="{label: labelCol}"
        :data="options"
        check-strictly
        default-expand-all
        :render-after-expand="false"
    />
</template>

<script setup lang="ts">
const props = withDefaults(defineProps<{
    options: any,
    labelCol?: string,
    valueCol?: string,
}>(), {
    labelCol: 'title',
    valueCol: 'id'
})
</script>

<style scoped>

</style>
